package org.dromara.assets.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 交易所账号对象 assets_account
 *
 * @author ruoyi
 * @date 2022-08-25
 */
public class AssetsAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 1:Binance;2:Huobi;3:ZB;4:BigOne */
    private Long platform;

    /** 登录用户名 */
    private String userId;

    /** 1:共同拥有;2:小琴拥有;3:陈学拥有 */
    private Integer whos;

    /** 访问的API_KEY */
    private String apiKey;

    /** 访问的API_Secret */
    private String apiSecret;

    /** 账号状号,1:已启用,2:未启用 */
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPlatform(Long platform)
    {
        this.platform = platform;
    }

    public Long getPlatform()
    {
        return platform;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setWhos(Integer whos)
    {
        this.whos = whos;
    }

    public Integer getWhos()
    {
        return whos;
    }
    public void setApiKey(String apiKey)
    {
        this.apiKey = apiKey;
    }

    public String getApiKey()
    {
        return apiKey;
    }
    public void setApiSecret(String apiSecret)
    {
        this.apiSecret = apiSecret;
    }

    public String getApiSecret()
    {
        return apiSecret;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("platform", getPlatform())
            .append("userId", getUserId())
            .append("whos", getWhos())
            .append("apiKey", getApiKey())
            .append("apiSecret", getApiSecret())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
